/*
 * @(#)KeywordController.java $version 2012. 1. 24.
 *
 */

package com.mywep.myalimi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.mywep.myalimi.service.KeywordService;

/**
 * @author 한지웅
 */
@Controller
@RequestMapping("/alimi/keyword")
public class KeywordController {
	@Autowired
	private KeywordService keywordService;

	@RequestMapping(value = "/get.nhn", method = {RequestMethod.GET, RequestMethod.POST})
	public ModelAndView getKeywords() {
		ModelAndView mav = new ModelAndView();
		keywordService.getKeywords();
		mav.setViewName("keyword/getList");
		return mav;
	}

}
